package com.design.cjm.creational.builder.example1;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author: Jie Ming Chen
 * @Date: 2018/9/24
 * @Version 1.0
 */
public class Product {

    List<String> parts = new ArrayList<>();

    private boolean isOverStand;

    public void add(String part) {

        parts.add(part);

        isOverStand = true;
    }

    public void show() {

        for (String part: parts) {
            System.out.println(part);
        }
    }
}
